crPESetNthParameterField

The crPESetNthParameterField function sets a value for the specified parameter field.

Declare Function crPESetNthParameterField Lib "crwrap32.dll" (ByVal printJob As Integer, ByVal parameterN As Integer, ByVal ValueType As Integer, ByVal DefaultValueSet As Integer, ByVal CurrentValueSet As Integer, ByVal Name As String, ByVal Prompt As String, ByRef DefaultValue As Any, ByRef CurrentValue As Any) As Integer

Parameters

printJob

Specifies the handle of the print job for which you want to set a parameter field value.

parameterN

Specifies the number of the parameter field in the report.

ValueType

Specifies the data type of the parameter field. The Crystal Report Engine supports the following data types: number, currency, Boolean, date, and string. Use the appropriate constant from the list below.

Data Type Constant


Number

PE_PF_NUMBER


Currency

PE_PF_CURRENCY


Boolean

PE_PF_BOOLEAN


Date

PE_PF_DATE


String

PE_PF_STRING

DefaultValueSet

Indicates whether or not to use the default value for the parameter field. The value can be either TRUE (1) to use the default value or FALSE (0) to specify a new value.

Return value

TRUE (1) if the call is successful, FALSE (0) if the call fails.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com